import platform
import logging

logger = logging.getLogger(__name__)

"""
MOD_WIN only available on windows,
MOD_COMMAND only on macs
"""
MOD_CONTROL, MOD_ALT, MOD_SHIFT, MOD_WIN, MOD_COMMAND = range(5)

"""
If True widget is always visible, even if not focused. 
If False behaves as any usual window
"""
always_on_top = True

"""
tuple used to register hotkey. (modifier tuple, virtual_key)
modifiers: 
	tuple of modifiers, can be MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN (under windows),
		MOD_COMMAND (under Mac)

	Some combinations aren't recommended though - i.e. alt alone is probably already
	in use by the application to open menus and won't work as expected as a global
	shortcut

virtual key:
	virtual key code: For alphanumerical keys the key code is equivalent to the uppercase ASCII value.
	for windows see: http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx
"""
sys = platform.system()
if sys == "Windows":
	hotkey = ((MOD_CONTROL,), "X")
elif sys == "Darwin": # mac os x
	hotkey = ((MOD_COMMAND,), "X")
else:
	logger.info("Use default hotkey (ctrl-x).")
	hotkey = ((MOD_CONTROL,), "X")
	
"""
Global logging level of application
"""
loglevel = logging.WARN
